package com.zk.atm.service.impl;

import com.bpms.common.CommonUtil;
import com.bpms.common.JdbcWorker;
import com.bpms.common.VO;
import com.bpms.common.VOList;
import com.bpms.eai.PackTool;
import com.bpms.esb.IService;
import com.bpms.esb.SV;
import com.zk.atm.service.IAtmpDeviceType;

public class AtmpDeviceTypeListImpl extends PackTool implements IService,IAtmpDeviceType {
	
	@Override
	public VO exec(VO arg0) {
		byte [] body = (byte[])arg0.getObj("body");
		try{	
			VO t =new VO();
				
				//获取参数v
				//String org_code
				String ip="";
				//t.setAttr(name, value);
				
			    //查询的service:queryDeviceTypeList
			    JdbcWorker db=null;
			    String condition_sql="select *xxtype t where 1=1 ";
//			    if(org_name!=null&&!ip.equals("")){
//			    	condition_sql+="and  t.org like '%"++"%'";
//			    }
//			    if(ip){
//			    	condition_sql+=" and t.ip ="+ip;
//			    }
			    VOList result= db.readAll(new VO(), condition_sql);
			    t.setObj("result", result);
			CommonUtil.debug("0000");
			return t;
		}catch (Exception e) {
			CommonUtil.debug("9999");
			return null;
		}
	}

}
